package com.htc.android.footprints.commonui;

import java.text.MessageFormat;

import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.widget.TextView;

public class ExportDialog extends CommonDialog
  implements KMLUtil.OnProgressListener
{
  private Handler handler = new Handler();
  private MessageFormat mf;
  private TextView msgText;

  public ExportDialog(Context paramContext)
  {
    super(paramContext);
  }

  private void setProgress(int paramInt)
  {
    Object[] arrayOfObject = new Object[1];
    arrayOfObject[0] = new Integer(paramInt);
    setMessage(this.mf.format(arrayOfObject));
  }

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    setContentView(2130903052);
    this.mf = new MessageFormat(getContext().getString(2131361901));
    this.msgText = ((TextView)findViewById(2131492890));
  }

  public void onEnd()
  {
  }

  public void onProgress(int paramInt)
  {
    this.handler.post(new Runnable(paramInt)
    {
      public void run()
      {
        ExportDialog.this.setProgress(Math.min(100, this.val$step));
      }
    });
  }

  public void setMessage(CharSequence paramCharSequence)
  {
    this.msgText.setText(paramCharSequence);
  }
}

/* Location:           E:\workspace\dex2java\dex-translator-0.0.9.3\HtcFootprints_dex2jar.jar
 * Qualified Name:     com.htc.android.footprints.commonui.ExportDialog
 * JD-Core Version:    0.6.0
 */